<?php

namespace App\Http\Requests\Admin\Panx\Activity;

use App\Http\Requests\ApiRequest;

class ActivityStoreRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name'             => 'required|string|max:'.self::MAX_STRING,
            'activity_picture' => 'required|file|max:2048',
            'activity_url'     => 'required|string|max:'.self::MAX_STRING,
            'started_at'       => 'required|date',
            'ended_at'         => 'required|date',
        ];
    }
}
